<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>


<head>
<base href="<%=basePath %>html/~cust/cust/">
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
</head>
<body>

<div class="page_title">客户信息管理</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="reload();">查询</button>  
</div>
<table class="query_form_table">
	<tr>
		<th>客户编号</th>
		<td><input /></td>
		<th>名称</th>
		<td><input /></td>
		<th>地区</th>
		<td>
			<select>
				<option>全部</option>
				<option>北京</option>
				<option>华北</option>
				<option>中南</option>
				<option>东北</option>
				<option>西部</option>
			</select>
		</td>
	</tr>
	<tr>
		<th>客户经理</th>
		<td><input /></td>
		<th>客户等级</th>
		<td>
			<select>
				<option>全部</option>
				<option>战略合作伙伴</option>
				<option>合作伙伴</option>
				<option>大客户</option>
				<option>普通客户</option>
			</select>
		</td>
		<th>　</th>
		<td>　</td>
	</tr>
</table>
<br />
<table class="data_list_table">
	<tr>
		<th>序号</th>
		<th>客户编号</th>
		<th>名称</th>
		<th>地区</th>
		<th>客户经理</th>
		<th>客户等级</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${findByPage }" var="pag" varStatus="in">
	<tr>
		<td class="list_data_number">${in.index+1 }</td>
		<td class="list_data_text">${pag.uuid }</td>
		<td class="list_data_ltext">${pag.customname }</td>
		<td class="list_data_text">${pag.crmDictionaryByArea.itemvalue }</td>
		<td class="list_data_text">${pag.charger }</td>
		<td class="list_data_text">${pag.crmDictionaryByCustomlevel.itemvalue }</td>
		<td class="list_data_op">
			<img onclick="to('getuuidCrmCustom.action?uuid=${pag.uuid }');" title="编辑" src="../../images/bt_edit.gif" class="op_button" />
			<img onclick="to('html/~cust/cust/linkman.jsp');" title="联系人" src="../../images/bt_linkman.gif" class="op_button" />
			<img onclick="to('html/~cust/cust/activities.jsp');" title="交往记录" src="../../images/bt_acti.gif" class="op_button" />
			<img onclick="to('html/~cust/cust/orders.jsp');" title="历史订单" src="../../images/bt_orders.gif" class="op_button" />
			
			<img onclick="del('“客户：聪海信息科技有限公司”');" title="删除" src="../../images/bt_del.gif" class="op_button" />
			
		</td>
	</tr>
	</c:forEach>
	<tr>
		<th colspan="100" class="pager">
<div class="pager">
<form action="findByPage.action" method="post">
	共${allno}条记录 每页<input type="text " value="${no }" size="2" name="no" />条
	当前第<input value="${nowpages}" size="2"/>页/共${sumpage }页
	<a href="findByPage.action?page=1">第一页</a>
	<a href="findByPage.action?page=${nowpages-1}">上一页</a>
	<a href="findByPage.action?page=${nowpages+1}">下一页</a>
	<a href="findByPage.action?page=${sumpage }">最后一页</a>
	转到<input value="${page}" size="2" name="page" />页
	<input type="submit" width="20" value="GO" />
</form>
</div>
		</th>
	</tr>
</table>
</body>
</html>